There are four variables in the object browser: the application and session variables that are available in all components and two others, movie and movieDisplayGroup.
The movie declaration (shown below) declares movie to be an EOEnterpriseObject-a Java interface that describes the general behavior that all enterprise objects must have.
/** @TypeInfo Movie */ protected EOEnterpriseObject movie;
At run time, movie is a EOGenericRecord object. Recall that EOGenericRecord is used to represent enterprise objects unless you specify a custom class. Since you didn't check the "Use custom enterprise objects" box in the wizard's "Choose what to include in your model" page, your application defaults to using EOGenericRecord for all its entities.
The declaration (shown below) declares movieDisplayGroup to be a WODisplayGroup.
protected WODisplayGroup movieDisplayGroup;
Also note the comment explaining how movieDisplayGroup is initialized. The Main.java class doesn't have any code to create and initialize the display group. Instead, it's instantiated from an archive file, Main.woo, that's stored in the Main.wo component. You shouldn't edit woo files by hand; they're maintained by WebObjects Builder. The woo file archiving mechanism is described in more detail later in Specifying a Sort Order.
Table of Contents
Next Section